package com.woniu.mapper;

import com.woniu.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    //根据部门id查询部门员工
    public List<User> selectUsersByDid();
    //根据员工id查询员工
    public  User selectUserByUid(@Param("telephone") String telephone,@Param("password") String password);
    //role到user
    public  List<User> selectUserByRole();

    /**
     * 分页查询
     *
     */
    public List<User> selectUsersByPage(User condition);
    /**
     * 增加用户
     */
    public  void insertUser(User user);

}
